<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">

function a(){
	window.c = 10;
}
a();

function b(){
	alert(c)
}
b();
</script>
</body>
</html>